set -e

ssh root@test.dev.webapps.cn <<remote_shell

rm -rf /root/www/*

remote_shell

scp -r shell/docker/* root@test.dev.webapps.cn:/root/www

scp -r dist/* root@test.dev.webapps.cn:/root/www/public

ssh root@test.dev.webapps.cn <<remote_shell

docker logout chuanchengshengshi-docker.pkg.coding.net

docker login -u web-1631499712523 -p f75f918010df10683ba9447bf207dac3c4227c01 chuanchengshengshi-docker.pkg.coding.net

docker build -t chuanchengshengshi-docker.pkg.coding.net/gongyezhenxing/web/gongyezhenxing-web:v1 /root/www

docker push chuanchengshengshi-docker.pkg.coding.net/gongyezhenxing/web/gongyezhenxing-web:v1

docker logout chuanchengshengshi-docker.pkg.coding.net

docker image prune -f

remote_shell

date "+%Y-%m-%d %H:%M:%S"